﻿using Abp.Domain.Entities.Auditing;
using Abp.Domain.Services;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SFGX.Mango.BoxUses
{
	public interface IBoxUseManager : IDomainService
	{
		/// <summary>
		/// 下单买纸箱
		/// </summary>
		/// <param name="boxUse"></param>
		/// <returns></returns>
		Task BuyBoxAsync(BoxUse boxUse);

		/// <summary>
		/// 客户寄快递 销账  退纸箱钱
		/// </summary>
		/// <param name="id"></param>
		/// <param name="openId"></param>
		/// <param name="boxUsed"></param>
		/// <returns></returns>
		Task BoxHandlerAsync(int id, string openId, int  boxUsed);

		/// <summary>
		/// 获取收派员的纸箱记录
		/// </summary>
		/// <param name="openId"></param>
		/// <returns></returns>
		Task<IReadOnlyList<BoxUse>> GetListAsync(string openId);
	}
}
